/*
 * @Author: 李世千
 * @Date: 2021-04-21 15:50:43
 * @LastEditTime: 2021-05-05 20:34:59
 * @LastEditors: 邢
 */
import {  getAbout,MessagedGuestbook} from "@/seivers/about";
import { makeAutoObservable } from "mobx"
import {Datum} from '@/utils/about'
class About{

    constructor(){
       
        makeAutoObservable(this);
    } 

    AboutId:any={}//关于id
    listAbout:Datum[]=[]
    AboutList:any=[]
    page = 1;//页数
    total=0
    
    async   getAbout(){
        let result = await  getAbout();
        if (result.statusCode === 200) {
          this.listAbout = result.data,
          this.AboutId= result.data;
        }
    }

    
 // 关于
 async  MessagedGuestbook(Id:any,page:number){
    let result = await MessagedGuestbook(Id, page);
    if(result.statusCode===200){
        this.AboutList=result.data[0];
        this.total = result.data[1];
        page++
    }
}


}

export default About;
